package com.bawei.lib_storage.database

import androidx.room.Database
import androidx.room.RoomDatabase
import com.bawei.lib_storage.database.dao.TakeVideoDao
import com.bawei.lib_storage.database.dao.FavoriteVideoDao
import com.bawei.lib_storage.database.dao.HistoryVideoDao
import com.bawei.lib_storage.database.entity.TakeVideoEntity
import com.bawei.lib_storage.database.entity.FavoriteVideoEntity
import com.bawei.lib_storage.database.entity.HistoryVideoEntity

@Database(entities = [TakeVideoEntity::class, FavoriteVideoEntity::class, HistoryVideoEntity::class], version = 2, exportSchema = false)
abstract class AppDataBase: RoomDatabase() {
    abstract fun takeVideoDao(): TakeVideoDao
    abstract fun favoriteVideoDao(): FavoriteVideoDao
    abstract fun historyVideoDao(): HistoryVideoDao
}